package api_structure

type AddUserForm struct {
	Account     string `form:"account" json:"account" binding:"required"`
	PassWord    string `form:"password" json:"password" binding:"required,min=6,max=20"`
	UserName    string `form:"username" json:"username" binding:"required"`
	Departments string `form:"departments" json:"departments"`
	Mobile      string `form:"mobile" json:"mobile" binding:"required,min=8,max=14"`
	Role        int64  `form:"role" json:"role" binding:"required"`
	Addr        string `form:"addr" json:"addr"`
	Email       string `form:"email" json:"email"`
}

type EditUserForm struct {
	Id          int64  `form:"id" json:"id" binding:"required"`
	PassWord    string `form:"password" json:"password" binding:"min=6,max=20"`
	UserName    string `form:"username" json:"username" binding:"`
	Departments string `form:"departments" json:"departments"`
	Mobile      string `form:"mobile" json:"mobile"`
	Role        int64  `form:"role" json:"role"`
	Status      int64  `form:"status" json:"status"`
	Addr        string `form:"addr" json:"addr"`
	Email       string `form:"email" json:"email"`
}

type GetUserIdForm struct {
	UserId int64 `form:"user_id" json:"user_id" binding:"required"`
}

type GetUserAccountForm struct {
	Account string `form:"account" json:"account" binding:"required"`
}
type GetUserNameForm struct {
	UserName string `form:"name" json:"name" binding:"required"`
}
type GetUserMobileForm struct {
	Mobile int64 `form:"mobile" json:"mobile" binding:"required"`
}
